//
//  FileManager+Extension.swift
//  Recorder
//
//  Created by 魏滨 on 2020/4/3.
//  Copyright © 2020 魏滨. All rights reserved.
//

import UIKit

extension FileManager {
   static func creatPath(_ path: String) -> Bool {
        if FileManager.default.fileExists(atPath: path) {
            return true
        }else {
            do {
                try FileManager.default.createDirectory(atPath: path, withIntermediateDirectories: true, attributes: nil)
                return true
            } catch let error {
                NSLog(error.localizedDescription)
                return false
            }
        }
    }
}

